package com.ruoyi.logistic.service.impl;

import com.ruoyi.logistic.domain.NetworkClient;
import com.ruoyi.logistic.domain.NetworkClientTag;
import com.ruoyi.logistic.mapper.NetworkClientMapper;
import com.ruoyi.logistic.mapper.NetworkClientTagMapper;
import com.ruoyi.logistic.service.NetworkClientTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NetworkClientTagServiceImpl implements NetworkClientTagService {
    @Autowired
    private NetworkClientTagMapper networkClientTagMapper;
    @Autowired
    private NetworkClientMapper networkClientMapper;

    @Override
    public List<NetworkClientTag> selectAll() {
        return networkClientTagMapper.selectAll();
    }

    @Override
    public Boolean insert(NetworkClientTag networkClientTag) {
        return networkClientTagMapper.insert(networkClientTag);
    }

    @Override
    public Boolean update(NetworkClientTag networkClientTag) {
        return networkClientTagMapper.update(networkClientTag);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkClientTagMapper.deleteById(id);
    }

    @Override
    public List<NetworkClientTag> findByIds(Integer[] clientTagId) {
        return networkClientTagMapper.findByIds(clientTagId);
    }

    @Override
    public List<NetworkClient> selectByName(String name) {
        return networkClientMapper.selectByName(name);
    }
}
